package com.share.finance.risk.third.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 决策变量-三方接口关联表
 * </p>
 *
 * @author author
 * @since 2022-07-27
 */
@Data
@Accessors(chain = true)
@TableName("trd_interface_config")
public class InterfaceConfig implements Serializable{

    private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /** 接口id */
    @TableField(value = "int_id")
    private String intId;
    /** 数据产商 */
    @TableField(value = "int_source")
    private String intSource;
    /** 接口名称 */
    @TableField(value = "int_name")
    private String intName;
    /** 请求地址 */
    @TableField(value = "int_url")
    private String intUrl;
    /** 接口对应的类 */
    @TableField(value = "int_class")
    private String intClass;
    /** 接口对应的方法 */
    @TableField(value = "int_method")
    private String intMethod;

    @TableField(value = "http_groovy_script")
    private String httpGroovyScript;

    @TableField(value = "fee_groovy_script")
    private String feeGroovyScript;

    /** 接口成功标志 */
    @TableField(value = "sucess_flag")
    private String sucessFlag;
    /** 接口成功标志字段的值 */
    @TableField(value = "sucess_values")
    private String sucessValues;
    /** 数据源缓存key */
    @TableField(value = "redis_keys")
    private String redisKeys;
    /** 缓存周期，单位为天 */
    @TableField(value = "redis_period")
    private Integer redisPeriod;
    /** 是否有效 0-无效 1有效 */
    @TableField(value = "is_valid")
    private Boolean isValid;
    /** 创建时间 */
    @TableField(value = "create_time")
    private Date createTime;

}
